package com.zzc.study.exp;

import lombok.Getter;

/**
 *自定义业务异常类
 */

@Getter
public class BusinessException extends RuntimeException {
    /** 结果状态 ,具体状态码参见枚举类ReturnCodeEnum.java*/
    private String code;
    private String message;
    public BusinessException(String code,String message){
        super(message);
        this.code = code;
        this.message = message;
    }


}
